local addonName, IWonew = ...
local disableOrderLogs = true

hooksecurefunc(C_CraftingOrders, "AreOrderNotesDisabled",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.AreOrderNotesDisabled")
  end
)
hooksecurefunc(C_CraftingOrders, "CalculateCraftingOrderPostingFee",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.CalculateCraftingOrderPostingFee")
  end
)
hooksecurefunc(C_CraftingOrders, "CancelOrder",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.CancelOrder")
  end
)
hooksecurefunc(C_CraftingOrders, "CanOrderSkillAbility",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.CanOrderSkillAbility")
  end
)
hooksecurefunc(C_CraftingOrders, "ClaimOrder",
  function(...)
    -- if disableOrderLogs then return true end
    print("C_CraftingOrders.ClaimOrder", ...)
  end
)
hooksecurefunc(C_CraftingOrders, "CloseCrafterCraftingOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.CloseCrafterCraftingOrders")
  end
)

hooksecurefunc(C_CraftingOrders, "CloseCustomerCraftingOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.CloseCustomerCraftingOrders")
  end
)

hooksecurefunc(C_CraftingOrders, "FulfillOrder",
  function(orderID, crafterNote, profession)
    -- if disableOrderLogs then return true end
    print("C_CraftingOrders.FulfillOrder", orderID, crafterNote, profession)
  end
)

hooksecurefunc(C_CraftingOrders, "GetClaimedOrder",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetClaimedOrder")
  end
)
hooksecurefunc(C_CraftingOrders, "GetCrafterBuckets",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetCrafterBuckets")
  end
)
hooksecurefunc(C_CraftingOrders, "GetCrafterOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetCrafterOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "GetCraftingOrderTime",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    -- if disableOrderLogs then return true end
    -- print("C_CraftingOrders.GetCraftingOrderTime")
  end
)
hooksecurefunc(C_CraftingOrders, "GetCustomerCategories",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetCustomerCategories")
  end
)
hooksecurefunc(C_CraftingOrders, "GetCustomerOptions",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetCustomerOptions")
  end
)
hooksecurefunc(C_CraftingOrders, "GetCustomerOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetCustomerOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "GetDefaultOrdersSkillLine",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetDefaultOrdersSkillLine")
  end
)
hooksecurefunc(C_CraftingOrders, "GetMyOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetMyOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "GetNumFavoriteCustomerOptions",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetNumFavoriteCustomerOptions")
  end
)
hooksecurefunc(C_CraftingOrders, "GetOrderClaimInfo",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetOrderClaimInfo")
  end
)
hooksecurefunc(C_CraftingOrders, "GetPersonalOrdersInfo",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.GetPersonalOrdersInfo")
  end
)
hooksecurefunc(C_CraftingOrders, "HasFavoriteCustomerOptions",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.HasFavoriteCustomerOptions")
  end
)
hooksecurefunc(C_CraftingOrders, "IsCustomerOptionFavorited",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.IsCustomerOptionFavorited")
  end
)
hooksecurefunc(C_CraftingOrders, "ListMyOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.ListMyOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "OpenCrafterCraftingOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.OpenCrafterCraftingOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "OpenCustomerCraftingOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.OpenCustomerCraftingOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "OrderCanBeRecrafted",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.OrderCanBeRecrafted")
  end
)
hooksecurefunc(C_CraftingOrders, "ParseCustomerOptions",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.ParseCustomerOptions")
  end
)
hooksecurefunc(C_CraftingOrders, "PlaceNewOrder",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.PlaceNewOrder")
  end
)
hooksecurefunc(C_CraftingOrders, "RejectOrder",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.RejectOrder")
  end
)
hooksecurefunc(C_CraftingOrders, "ReleaseOrder",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.ReleaseOrder")
  end
)
hooksecurefunc(C_CraftingOrders, "RequestCrafterOrders",
  function(request)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.RequestCrafterOrders")
    print(IWonew.TableToString(request))
  end
)
hooksecurefunc(C_CraftingOrders, "RequestCustomerOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.RequestCustomerOrders")
  end
)
hooksecurefunc(C_CraftingOrders, "SetCustomerOptionFavorited",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.SetCustomerOptionFavorited")
  end
)
hooksecurefunc(C_CraftingOrders, "ShouldShowCraftingOrderTab",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.ShouldShowCraftingOrderTab")
  end
)
hooksecurefunc(C_CraftingOrders, "SkillLineHasOrders",
  function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.SkillLineHasOrders")
  end
)
hooksecurefunc(C_CraftingOrders, ".UpdateIgnoreList",
function(recipeID, amount, itemTargetLocation, craftingReagentTbl, applyConcentration)
    if disableOrderLogs then return true end
    print("C_CraftingOrders.UpdateIgnoreList")
  end
)